//
//  USLoveCompassGuideController.m
//  us
//
//  Created by karry on 2025/4/21.
//

#import "USLoveCompassGuideController.h"

#import "USLoveCompassViewController.h"

@interface USLoveCompassGuideController ()


@end

@implementation USLoveCompassGuideController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.navigationItem.title = @"指南针";
    [self setupView];
    
}

- (void)setupView{
    
    UIImageView *imageView = [[UIImageView alloc]initWithImage:[UIImage imageNamed:@"Frame 113"]];
    [self.view addSubview:imageView];
    [imageView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.view.mas_safeAreaLayoutGuideTop).mas_offset(20);
        make.right.left.mas_offset(0);
    }];
    
    UIButton *sureBtn = [UIButton us_fillButtonWithTitle:@"开启该功能"];
    [sureBtn addTarget:self action:@selector(sureAction:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:sureBtn];
    
    [sureBtn mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_offset(30);
        make.right.mas_offset(-30);
        make.bottom.mas_equalTo(self.view.mas_safeAreaLayoutGuideBottom).mas_offset(-20);
        make.height.mas_equalTo(UIButton.us_buttonDefaultHeight);
    }];
    
}

//- (void)setupView{
//
//
//    UIScrollView *scrollView = [[UIScrollView alloc]initWithFrame:self.view.bounds];
//    [self.view addSubview:scrollView];
//    [scrollView mas_makeConstraints:^(MASConstraintMaker *make) {
//        make.edges.mas_equalTo(0);
//    }];
//
//    UIView *contentView = [UIView new];
//    [self.view addSubview:contentView];
//
//    [scrollView addSubview:contentView];
//
//    [contentView mas_makeConstraints:^(MASConstraintMaker *make) {
//        make.width.mas_equalTo(scrollView);
//        make.edges.mas_equalTo(0);
//    }];
//
//    UILabel *lab0 = [UILabel new];
//    lab0.text = @"我们不想做实时监控的位置软件，\n那种“被追踪”的窒息感，不是我们要的。";
//    lab0.numberOfLines = 0;
//    lab0.textAlignment = NSTextAlignmentCenter;
//    lab0.font = [UIFont systemFontOfSize:17];
//    lab0.textColor = UIColor.secondaryLabelColor;
//    [contentView addSubview:lab0];
//    [lab0 mas_makeConstraints:^(MASConstraintMaker *make) {
//        make.left.mas_offset(30);
//        make.right.mas_offset(-30);
//        make.top.mas_equalTo(self.view.mas_safeAreaLayoutGuideTop).mas_offset(30);
//    }];
//
//    UILabel *lab1 = [UILabel new];
//    lab1.text = @"我们相信—— \n爱是方向感，不是控制感。";
//    lab1.numberOfLines = 0;
//    lab1.textAlignment = NSTextAlignmentCenter;
//    lab1.font = [UIFont systemFontOfSize:20 weight:UIFontWeightSemibold];
//    [contentView addSubview:lab1];
//    [lab1 mas_makeConstraints:^(MASConstraintMaker *make) {
//        make.left.mas_offset(30);
//        make.right.mas_offset(-30);
//        make.top.mas_equalTo(lab0.mas_bottom).mas_offset(12);
//    }];
//
//    UIImageView *imageView = [[UIImageView alloc]initWithImage:[UIImage imageNamed:@"Frame"]];
//    [contentView addSubview:imageView];
//    [imageView mas_makeConstraints:^(MASConstraintMaker *make) {
//        make.top.mas_equalTo(lab1.mas_bottom).mas_offset(20);
//        make.centerX.mas_equalTo(self.view);
//    }];
//
//    UILabel *lab2 = [UILabel new];
//    lab2.textColor = UIColor.secondaryLabelColor;
//    lab2.text = @"情侣指南针，只需一个大致位置，\n就能感应对方的大致方向，\n既浪漫，又保护隐私。\n\n当然，如果你们同时打开指南针，你们将可以实时看到对方的方向，精准的寻找到彼此 ";
//    lab2.numberOfLines = 0;
//    lab2.textAlignment = NSTextAlignmentCenter;
//    lab2.font = [UIFont systemFontOfSize:17];
//    [contentView addSubview:lab2];
//    [lab2 mas_makeConstraints:^(MASConstraintMaker *make) {
//        make.left.mas_offset(20);
//        make.right.mas_offset(-20);
//        make.top.mas_equalTo(imageView.mas_bottom).mas_offset(16);
//        make.bottom.mas_offset(-20).priority(250);
//    }];
//

//}

- (void)sureAction:(id)sender{
    
    !self.didStartBlock?:self.didStartBlock();
    
}

/*
 #pragma mark - Navigation
 
 // In a storyboard-based application, you will often want to do a little preparation before navigation
 - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
 // Get the new view controller using [segue destinationViewController].
 // Pass the selected object to the new view controller.
 }
 */

@end
